#ifndef HB_ASSIST_AVOID_H
#define HB_ASSIST_AVOID_H


#include "dji_flight_handler.h"


class djiFlightHandler;

class hbAssistAvoid
{
public:
	hbAssistAvoid();
	~hbAssistAvoid();

	void init(djiFlightHandler *handler);

	void sleepMs(uint32_t timeMs);

	void setAssistAvoidModeRunFlag(bool stats);

	bool getAssistAvoidModeRunFlag();

	bool obtainJoyStickCtrlAuthority();

	void releaseJoyStickCtrlAuthority();

	void writeLogFile(const char * format, ...);

	void run();

private:
	djiFlightHandler *m_djiFlightHandler;
	bool m_assistAvoidModeRunFlag;

	T_DjiFcSubscriptionDisplaymode m_flightCurrentMode;
	T_DjiFcSubscriptionFlightStatus m_flightCurrentStatus;

	bool m_haveFlightControlAuthorityFlag;

};

extern hbAssistAvoid assistAvoid;
#endif//HB_ASSIST_AVOID_H
